type UserApi = {
    login: (obj:{telephone:string, password:string, roleKey:string, remember:true}) => Promise<any>;
    add?: (opts: any) => Promise<any>;
}


export default <UserApi> {
    // get请求
    login: async (obj:{telephone:string, password:string, roleKey:string, remember:true}) => await getFetchData(obj.roleKey + '/login','post',obj)  
    // // post请求
    // const res = await getFetchData({
    //   url: '/xxx/getList',
    //   opts: {
    //     memberLevel: 1,
    //     pageNum: 1,
    //     pageSize: 10,
    //   },
    //   method: 'post',
    // })
}